export default [
  {
    path: '/index',
    component: './Index',
  },
  {
    path: '/welcome',
    name: '欢迎',
    icon: 'smile',
    component: './Home',
    access: 'canAdmin',
  },
  {
    path: '/account',
    name: '账户管理',
    access: 'canAdmin',
    routes: [
      {
        name: '账户信息',
        path: '/account/myAccount',
        component: './account/MyAccount',
        access: 'canAdmin',
      },
      {
        name: '编辑账户信息',
        path: '/account/editAccount',
        component: './account/EditAccount',
        access: 'canAdmin',
      },
    ],
  },
  {
    path: '/item',
    name: '作品管理',
    access: 'canAdmin',
    routes: [
      {
        name: '作品确权',
        path: '/item/addItem',
        component: './item/AddItem',
        access: 'canAdmin',
      },
      {
        name: '作品列表',
        path: '/item/itemTable',
        component: './item/ItemTable',
        access: 'canAdmin',
      },
      {
        name: '作品详情',
        hideInMenu: true,
        path: '/item/itemDetails/:fileHash',
        component: './item/ItemDetails',
        access: 'canAdmin',
      },
    ],
  },
  {
    path: '/market',
    name: '作品交易',
    access: 'canAdmin',
    routes: [
      {
        name: '作品交易',
        path: '/market/item/itemTable',
        component: './market/ItemTable',
        access: 'canAdmin',
      },
      {
        name: '作品展示',
        hideInMenu: true,
        path: '/market/item/:fileHash',
        component: './market/Item',
        access: 'canAdmin',
      },
    ],
  },
  {
    path: '/',
    redirect: '/index',
  },
  {
    component: '404',
  },
];
